import request from '@/utils/request'

// 查询变压器-部件列表
export function listNyTransPart(query) {
  return request({
    url: '/energy/nyTransPart/list',
    method: 'get',
    params: query
  })
}

// 查询变压器-部件详细
export function getNyTransPart(id) {
  return request({
    url: '/energy/nyTransPart/' + id,
    method: 'get'
  })
}

// 新增变压器-部件
export function addNyTransPart(data) {
  return request({
    url: '/energy/nyTransPart',
    method: 'post',
    data: data
  })
}

// 修改变压器-部件
export function updateNyTransPart(data) {
  return request({
    url: '/energy/nyTransPart',
    method: 'put',
    data: data
  })
}

// 删除变压器-部件
export function delNyTransPart(id) {
  return request({
    url: '/energy/nyTransPart/' + id,
    method: 'delete'
  })
}
